<div data-view="main/update">
	<header class="bar bar-nav">
		<a class="icon icon-left-nav pull-left" data-action="back"></a>
    <h1 class="title">模块管理</h1>
    <a class="btn btn-link btn-nav pull-right" id='actionEdit'>编辑</a>
  </header>
  <nav class="bar bar-standard" style="margin-top:44px;">
		  <div class="segmented-control">
		    <a class="control-item active" data-panel="panel-installed">已安装</a>
		    <a class="control-item" data-panel="panel-update">可更新</a>
		  </div>
		</nav>
	<div class="content">

		<script type="text/template" id="module-update-template">
			<li>
				<img class="module-icon" src="<%= icon == 'default' ? './icon.png' : 'http://bsl.foreveross.com/bsl-web/mam/attachment/download/' + icon %>"/>
				<div class="module-info">
					<span class="name"><%=name%></span> <span class="version">版本 <%=version%></span>
					<p class="desc"><%=description%></p>
				</div>
				<button id="updateBtn" class='btn btn-update' data-bundle=<%=bundle%>>更新</button>
			</li>
		</script>

		<script type="text/template" id="module-installed-template">
			<li data-identifier=<%=identifier%>>
				<img class="module-icon" src="<%= icon == 'default' ? './icon.png' : 'http://bsl.foreveross.com/bsl-web/mam/attachment/download/' + icon %>"/>
				<div class="module-info">
					<span class="name"><%=name%></span> <span class="version">版本 <%=version%></span>
					<p class="desc"><%=description%></p>
					<button id="removeBtn" class='btn btn-remove' style='display:none;' data-identifier=<%=identifier%>>卸载</button>
				</div>
			</li>
		</script>

		<div id="panel-installed" class="module-panel">
			<ul class="module-list">
			</ul>
		</div>

		<div id="panel-update" class="module-panel" style="display:none;">
			<ul class="module-list">

		</ul>
		</div>

	</div>
</div>
